package com.sansan.qiangji.controller.warehouse;

import com.sansan.qiangji.realize.warehouse.StackerTaskInReal;
import com.sansan.qiangji.resultVO.ResultVO;
import com.sansan.qiangji.utils.ResultVOUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@CrossOrigin()
@RequestMapping("/stackerTaskIn")
@RestController
@Slf4j
public class StackerTaskInController {
    private StackerTaskInReal stackerTaskInReal;

    @Resource
    public void setStackerTaskInReal(StackerTaskInReal stackerTaskInReal){
        this.stackerTaskInReal = stackerTaskInReal;
    }

    @PostMapping("/findByStackerTaskInCode")
    public ResultVO<Object> findByStackerTaskInCode(@RequestParam(value = "stackerTaskInCode") String stackerTaskInCode){
        return ResultVOUtil.success(stackerTaskInReal.findByStackerTaskInCode(stackerTaskInCode));
    }

    @GetMapping("/findStackerTasking")
    public ResultVO<Object> findStackerTasking(){
        return ResultVOUtil.success(stackerTaskInReal.findStackerTasking());
    }
}
